package pta;
import java.util.Scanner;
import java.util.Arrays;
public class pta3 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in 

);
		

		while(true){
			int a = sc.nextInt();
			String array[][]=new String [a][];
			
			for(int i=0;i<a;i++){
				array[i]=new String [i+1];
			}
				
				for(int j=0;j<array.length;j++){
					
					for(int k=0;k<array[j].length;k++){
						
						if(k<array[j].length-1){
						array[j][k]=(j+1)+"*"+(k+1)+"="+(j+1)*(k+1);
						System.out.printf("%-7s",array[j][k]);}
						
						else{
							array[j][k]=(j+1)+"*"+(k+1)+"="+(j+1)*(k+1);
							System.out.printf("%s",array[j][k]);
						}
						
					
						
					
				}
					System.out.println();
					
					//System.out.println("=");
			}
				  System.out.println(Arrays.deepToString(array));
			
		}
	
	}
}
